import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { RobotController } from './robot.controller';
import { RobotService } from './robot.service';
import { Robot } from './robot.entity';
import { User } from '../user/user.entity';
import { Permission } from '../permission/permission.entity';
import { PermissionModule } from '../permission/permission.module';
import { forwardRef } from '@nestjs/common';
import { RobotRepository } from './robot.repository';

@Module({
  imports: [
    TypeOrmModule.forFeature([Robot]),
    TypeOrmModule.forFeature([User]),
    TypeOrmModule.forFeature([Permission]),
    forwardRef(() => PermissionModule),
  ],
  controllers: [RobotController],
  providers: [RobotService, RobotRepository],
  exports: [RobotService, RobotRepository],
})
export class RobotModule { } 